<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>品优购</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable =no">
    <link rel="stylesheet" href="lib/fontawesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" type="text/css" media="screen" href="./css/index.css" />

</head>
<body>
    <!-- 头部部分 -->
    <header class="pyg_header">
        <!-- 头部搜索框 -->
        <div class="mui-input-row mui-search">
            <input type="search" class="mui-input-clear" placeholder="">
        </div>
    </header>
    <!-- 内容部分 -->
    <div class="pyg_view">
       <!-- 轮播图开始 -->
        <div class="pyg_view_swiper">

        </div>
       <!-- 轮播图结束 -->
       <!-- 首页导航开始 -->
       <div class="pyg_cates">
       </div>
       <!-- 首页导航结束 -->
       <!-- 商品列表开始 -->
       <div class="pyg_list"></div>
       <!-- 商品列表结束 -->
    </div>
    <!-- 底部部分 -->
    <footer class="pyg_footer">
        <a href="javascript:;">
            <span class="fa fa-home"></span>
            <div class="pagename">首页</div>
        </a>
        <a href="javascript:;">
            <span class="fa fa-list-ul"></span>
            <div class="pagename">分类</div>
        </a>
        <a href="javascript:;">
            <span class="fa fa-shopping-cart"></span>
            <div class="pagename">购物车</div>
        </a>
        <a href="javascript:;">
            <span class="fa fa-user-circle-o"></span>
            <div class="pagename">我的</div>
        </a>
    </footer>  
    
</body>
<!-- 轮播图模板start -->
<script type="text/html" id="swiperTmp">
     <div class="mui-slider">
        <!-- 图片 -->
        <div class="mui-slider-group mui-slider-loop">
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{arr[arr.length-1].image_src}}" /></a></div>
            {{each arr item index }}
            <div class="mui-slider-item"><a href="#"><img src="{{item.image_src}}" /></a></div>
            {{/each}}
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{arr[0].image_src}}" /></a></div>
        </div>
        <!-- 索引器 -->
        <div class="mui-slider-indicator">
            {{each arr item index}}
            <div class="mui-indicator {{index===0?'mui-active':''}}"></div>
            {{/each}}
        </div>
    </div>
</script>
<!-- 轮播图模板end -->
<!-- 商品列表开始 -->
<script type="text/html" id="listTmp">
    {{each arr item1 index1}}
  <div class="goods_item">
        <!-- 标题 -->
        <div class="goods_title">
            <img src="{{item1.group_img}}" alt="">
        </div>
        <!-- 小商品列表 -->
        <ul class="goods_list">
            {{each item1.goods item2 index}}
            <li>
                <!-- 商品详情 -->
                <a href="javascript:;" class="goods_detail">
                    <!-- 图片 -->
                    <img src="{{item2.goods_small_logo}}" alt="">
                    <!-- 名称 -->
                    <div class="goods_name">{{item2.goods_name}}</div>
                    <!-- 价格 -->
                    <div class="goods_price"> ￥ {{item2.goods_price}}</div>
                </a>
                <!-- 类似 -->
                <a href="javascript:;" class="goods_similar">找相似</a>
            </li>
            {{/each}}
        </ul>
    </div>
    {{/each}}
</script>
<!-- 商品列表结束 -->
<script src="./lib/mui/js/mui.min.js"></script>
<script src="./lib/zepto/zepto.js"></script>
<script src="./lib/arttemplate/template-web.js"></script>
<script src="./js/common.js"></script>
<script src="./js/index.js"></script>
</html>
